<style type="text/css">
.syscolor{color: #25c376;}
.jylabel{padding: 0.3rem 0.5rem;line-height:2.5}
.banradius{border-top-left-radius:0;border-top-right-radius:0}
</style>
<div class="fui-page fui-page-current page-goods-list" ng-if="pagedata.showarea !=1">
<div class="fui-content" style="top:0">
<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
		<div class="carousel-inner" role="listbox" style="height:10rem">
			<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.pluginset.hdps">
				
				<a href="{{item.url}}">
					<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
				</a>
			</div>
		</div>
</div>
<div class="jy-content radius" style="position: relative;margin-top:-1rem;padding-top:0;background: linear-gradient(#dcf7ec, #F7F7F7)">
 <div class="fui-cell-title bold syscolor" style="padding-left:0">{{pagedata.pluginset.onetitle||'同城优质服务，传递温度！'}}</div>
<div ng-if="pagedata.params.ishot==1" class="fui-cellone" style="background-color: rgb(237, 250, 244); border-radius: 9px 9px 0px 0px; padding:0;">
<div ng-click="pagedata.params.ishot=1;tool.get_list('jy_djhome/index/getserve/',true);" class="fui-cellone-info c" style="background-image: url('../addons/jy_djhome/resource/images/lefttab.png'); background-size: cover;background-position: 50%;background-repeat: no-repeat;height: 45px; margin-top: -5px;margin-right:-15px">
	<div style="color: #25c376; font-weight: 600; font-size: 15px;padding-top:10px">推荐项目</div>
	<div style="background: #25c376; height: 3px; width: 30px; border-radius: 57px; margin: auto;"></div>
</div>
<div ng-click="pagedata.params.ishot=0;tool.get_list('jy_djhome/index/getserve/',true);" class="fui-cellone-info c" style="color: #999; font-weight: 500; font-size: 15px; width: 174px;">调理项目</div>
</div>
<div ng-if="pagedata.params.ishot!=1" class="fui-cellone" style="background-color: rgb(237, 250, 244); border-radius: 9px 9px 0px 0px; padding:0;">
<div ng-click="pagedata.params.ishot=1;tool.get_list('jy_djhome/index/getserve/',true);" class="fui-cellone-info c" style="color: #999; font-weight: 500; font-size: 15px; width: 174px;">推荐项目</div>
<div ng-click="pagedata.params.ishot=0;tool.get_list('jy_djhome/index/getserve/',true);" class="fui-cellone-info c" style="background-image: url('../addons/jy_djhome/resource/images/rigthtab.png'); background-size: cover;background-position: 50%;background-repeat: no-repeat;height: 45px; margin-top: -5px;margin-left:-15px">
	<div style="color: #25c376; font-weight: 600; font-size: 15px;padding-top:10px">调理项目</div>
	<div style="background: #25c376; height: 3px; width: 30px; border-radius: 57px; margin: auto;"></div>
</div>
</div>
<div ng-if="pagedata.list.length>0" class="fui-cell-group radius {{$index==0?'banradius':''}}" style="margin-top:{{$index>0?'0.5rem':0}}" ng-repeat="item in pagedata.list">
            <div class="fui-cell" style="padding:0.5rem 0.35rem">
                <div class="fui-cell-label" href="javascript:;" style="width:auto;padding-right:0.2rem" ng-click="access_json('jy_djhome/detail//id='+item.id)">
                    <div style="width:4.5rem;margin:0 auto">
					<img class="round" style="border-radius:0.2rem;height:3.5rem;width:4.5rem" ng-src="{{tomedia(item.image) || '../addons/jy_djhome/resource/images/xm.png'}}">
					</div>
                </div>
                <div class="fui-cell-text" style="margin-top:0" href="javascript:;" ng-click="access_json('jy_djhome/detail//id='+item.id)">
                    <div class="title bold" style="font-size:0.75rem">{{item.title}}</div>
                    <div class="gray overflow-h" style=";font-size:0.6rem">
						{{item.remark}}
					</div>
					<div class="gray" style="margin-top:0.3rem;height:auto;font-size:0.5rem">
						<span style="color:red">
						<span style="font-size:0.8rem">{{item.price}}</span>元/次
						</span>
						<i class="icon icon-shijian syscolor" style="font-size:0.6rem;padding-left:0.2rem"></i>
						<span>{{item.times}}分钟</span>
					</div>
                </div>
				<div class="fui-cell-remark noremark">
					<div class="gray" style="height:auto;font-size:0.5rem">
						超{{item.salenum||0}}人选择
					</div>
					<div class="jylabel jylabel-primary active" href="javascript:;" ng-click="access_json('jy_djhome/list//serve_id='+item.id)" style="border-radius:0.3rem;margin-top:0.3rem;font-size:0.6rem;border: 1px solid {{main.syscolor ||'#25c376'}};background-color:{{main.syscolor ||'#25c376'}};width:100%">选择技师</div>
				</div>
			</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
scope.main.syscolor='#25c376';
scope.loading = true;  //状态标记
// 百度地图API功能
if(!scope.pagedata.pcd.city){
	window.scope.location(function(res){
		if(!scope.pagedata.pcd.city){
			scope.pagedata.pcd.province = res.addressComponents.province;
			scope.pagedata.pcd.city = res.addressComponents.city;
		}
		scope.pagedata.params.city=scope.pagedata.pcd.city;
		scope.pagedata.params.lat = res.lat_lng.lat;
		scope.pagedata.params.lng = res.lat_lng.lng;
		scope.post_json('jy_djhome/index/uppcd/',scope.pagedata.params,function(res){});
	});
}
scope.tool.get_list('jy_djhome/index/getserve/',true);
scope.selectarea = function(province,city,district){
		scope.pagedata.pcd.province = province;
		scope.pagedata.pcd.city = city;
		scope.pagedata.pcd.district = district;
		scope.pagedata.params.status=scope.pagedata.params.status?scope.pagedata.params.status:'';
		scope.pagedata.params.order=scope.pagedata.params.order?scope.pagedata.params.order:'';
		scope.pagedata.params.keyword=scope.pagedata.params.keyword?scope.pagedata.params.keyword:'';
		scope.tool.get_list('jy_djhome/index/getserve/',true);
}
scope.pagedata.selectget=function(status,order){
	order=order?order:'';
	status=status?status:'';
	scope.pagedata.params.status=status;
	scope.pagedata.params.order=order;
	scope.tool.get_list('jy_djhome/index/getserve/',true);
}
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_djhome/index/getserve/');
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
<div ng-include="sys_html('common/pluginnav',true)"></div>